Subject: Re: Why does c.o clear BSS? It's not needed!!
From: [email-masked] (Ralph Babel)
Date: 27 Apr 1994 20:17:55 +0200
Newsgroups: comp.sys.amiga.programmer

Lauri Aalto wrote:

> I meant that the bss hunk clearing with AllocMem()'s CLEAR
> bit set while allocating memory for the hunks is
> undocumented.

The clearing of BSS hunks is documented on page 357 of the
Bantam manual. Yes, this was already documented prior to
2.0. No, it doesn't use MEMF_CLEAR. It never did.

> That's why most of the C compilers clear the bss hunks in
> a loop before actually using them.

No. We were talking about BSS space "implied" at the end of
a _data_ hunk the actual data block of which is shorter than
indicated in the header block. (SLink's small-data model.)